<?php

namespace app\services\office;

use app\dao\office\OfficeMajorDao;
use app\services\BaseService;

class OfficeMajorService extends BaseService
{
    public function __construct(OfficeMajorDao $dao)
    {
        $this -> dao = $dao;
    }

    public function index(array $where)
    {
        return $this -> dao ->index($where);
    }

    public function create(array $where)
    {
        return $this ->dao -> create($where);
    }

    public function update(array $where)
    {
        return $this ->dao -> updateDao($where);
    }

    public function delete(array $where)
    {
        return $this ->dao ->deleteDao($where);
    }

    public function search(array $where)
    {
        return $this ->dao ->searchDao($where);
    }

}